package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.RankStandings;
import com.novax.ex.common.base.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @Description
 * @Author ChenXi
 * @Date 2023/11/24/13:45
 */

public interface RankStandingsMapper extends BaseMapper {


    /**
     * @param rankSubConfigId
     * @Description: 清空旧排名数据
     * @Author: ChenXi
     * @Date: 2023/11/24 11:51
     * @return: void
     **/
    int deleteByRankSubId(@Param("rankSubConfigId") Long rankSubConfigId);

    /**
     * @Description: 批量添加
     * @Author: ChenXi
     * @Date:  2023/11/24 13:47
     * @param rankSubConfigId
     * @return: int
     **/
    int batchInsert(@Param("rankSubConfigId") List<RankStandings> rankSubConfigId);

}